cmake_minimum_required(VERSION 2.8.4)
project(TestApp)

set (MY_OUT_DIR "${PROJECT_SOURCE_DIR}/../../out")
set (EXECUTABLE_OUTPUT_PATH "${MY_OUT_DIR}/../bin")

include_directories("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../Internal/NetworkLib/include/") 
include_directories ("${PROJECT_SOURCE_DIR}/../Internal/UtilsLib/include/") 
include_directories ("${PROJECT_SOURCE_DIR}/../ClientLib/api/") 
include_directories ("${PROJECT_SOURCE_DIR}/../ClientLib/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../External/gtest-1.6.0/include/") 
include_directories ("${PROJECT_SOURCE_DIR}/../External/logog/include/")

AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/src/" TestApp_SOURCES) 
add_executable(${PROJECT_NAME} ${TestApp_SOURCES})

target_link_libraries (${PROJECT_NAME} ClientLib-static) 
target_link_libraries (${PROJECT_NAME} gtest) 
target_link_libraries (${PROJECT_NAME} gtest_main) 
target_link_libraries (${PROJECT_NAME} DatabaseLib) 